<?php

if(file_exists( PHP . _php($dsfm_uri) )){
    require_once( PHP . _php($dsfm_uri) );
	exit;
}

if(file_exists( HTML . _html($dsfm_uri) )){
    require_once( HTML . _html($dsfm_uri) );
	exit;
}

if(file_exists( ABSPATH . $dsfm_uri )){
	require_once( ABSPATH . $dsfm_uri );
	exit;
}

if(file_exists(HTML . "page.html") && $dsfm_page != null){
	if($dsfm_page->have_page($dsfm_uri)){
		$dsfm_page->rain_display($dsfm_uri, $tpl, "page");
		exit;
	}
}

if(file_exists( HTML . "404.html" )){
	require_once( HTML .  "404.html" );
	exit;
}

header("Location:".URL);
?>